/**
  ******************************************************************************
  * @file   : power.h
  * @author : 测试1组（houtiezhu）
  * @version: v0
  * @date   : 2019.07.09
  * @brief  : 
  *           
  * Copyright (C) 2019  Hangzhou SDIC Microelectronics Co., Ltd
  ******************************************************************************
**/

#ifndef FUNC_H
#define FUNC_H
#include "define.h"




extern uint8 	DeflateSetting;
extern uint16 SetKeyTimew;
extern volatile union 	byte_bit		ibuffer;
extern uint8 valveoffset;
extern uint8 limit;
extern uint8 TimeBak[5];
extern	uint16  DiaMeanEnd;	
extern	uint8   OneSecDeflated;  
extern	uint8   MemoryEndIndex; 
extern	uint8   DeflateMemory;

void	initialHW(void);
void	AutoCALMode(void);	 
void   checkmemorybank(void);
void   checkmemorybankAB(void);
//void	checkeeprom(void);
void	savetomemory(void);
void	TimeSetThreeKey(void);
void	TimeSetTwoKey(void);
void	In_Deflate(void);

void initial(void);	
void InitialLoop(void);
void checkpressure(void);

void keydelay(void);
void keydelay2(void);

void In_Deflate(void);
void LifeTest(void);
void TestValve(void);
void Key12Clr(void);
void Key11Clr(void);
void totimekeyin(void);
void unitsetonekey(void);
//void DPDetect(unsigned char SYS,unsigned char DIA);

void	deflate(void);
void SoundWHO(uint8 SYS,uint8 DIA);
void Relax(unsigned char Time);
void PumptoTarget(unsigned int TargetP,unsigned char Time);

void readfunction(void);

void spandivid(void);



#endif 



/************************ (C) COPYRIGHT Hangzhou SDIC Microelectronics *****END OF FILE****/